package com.ruoyi.mes.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 采购订单对象 phg_rm_order
 * 
 * @author CFL
 * @date 2024-04-28
 */
public class PhgRmOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 采购订单id */
    private Long id;

    /** 采购编号 */
    private String sn;


    /** 物料id */
    private Long matId;

    /** 产品bom_id */
    private Long bomId;


    /** 订单id */
    private Long orderId;


    /** 产品id */
    private Long proId;


    /** 采购员id */
    @Excel(name = "采购员")
    private Long userId;


    /** 供应商id */
    private Long supplierId;


    /** 采购数量 */
    @Excel(name = "采购数量")
    private Long reqNum;


    /** 物料价格 */
    @Excel(name = "物料价格")
    private Long matPrice;


    /** 物料编码 */
    @Excel(name = "物料编码")
    private String matSn;


    /** 物料名称 */
    @Excel(name = "物料名称")
    private String matName;

    /** 到货状态 */
    @Excel(name = "到货状态")
    private Integer arriveState;

    /** 入库状态 */
    @Excel(name = "入库状态")
    private Integer btsState;


    /** 逻辑删除;0：存在；1：删除 */
    @Excel(name = "逻辑删除;0：存在；1：删除")
    private Integer isDeleted;

    /** 创建者 */
    @Excel(name = "创建者")
    private String createdBy;

    /** 用户名称 */
    @Excel(name = "用户名称")
    private String userName;

    /** 供应商名称 */
    @Excel(name = "供应商名称")
    private String supplierName;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdTime;

    /** 更新者 */
    private String updatedBy;

    /** 更新时间 */
    private Date updatedDate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSn(String sn) 
    {
        this.sn = sn;
    }

    public String getSn() 
    {
        return sn;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setArriveState(Integer arriveState) 
    {
        this.arriveState = arriveState;
    }

    public Integer getArriveState() 
    {
        return arriveState;
    }
    public void setBtsState(Integer btsState) 
    {
        this.btsState = btsState;
    }

    public Integer getBtsState() 
    {
        return btsState;
    }
    public void setIsDeleted(Integer isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public Integer getIsDeleted() 
    {
        return isDeleted;
    }
    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }
    public void setCreatedTime(Date createdTime) 
    {
        this.createdTime = createdTime;
    }

    public Date getCreatedTime() 
    {
        return createdTime;
    }
    public void setUpdatedBy(String updatedBy) 
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy() 
    {
        return updatedBy;
    }
    public void setUpdatedDate(Date updatedDate) 
    {
        this.updatedDate = updatedDate;
    }

    public Date getUpdatedDate() 
    {
        return updatedDate;
    }

    public Long getMatId() {
        return matId;
    }

    public void setMatId(Long matId) {
        this.matId = matId;
    }
    public Long getBomId() {
        return bomId;
    }

    public void setBomId(Long bomId) {
        this.bomId = bomId;
    }
    public Long getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(Long supplierId) {
        this.supplierId = supplierId;
    }
    public Long getReqNum() {
        return reqNum;
    }

    public void setReqNum(Long reqNum) {
        this.reqNum = reqNum;
    }
    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }
    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public Long getProId() {
        return proId;
    }

    public void setProId(Long proId) {
        this.proId = proId;
    }

    public Long getMatPrice() {
        return matPrice;
    }

    public void setMatPrice(Long matPrice) {
        this.matPrice = matPrice;
    }
    public String getMatSn() {
        return matSn;
    }

    public void setMatSn(String matSn) {
        this.matSn = matSn;
    }
    public String getMatName() {
        return matName;
    }

    public void setMatName(String matName) {
        this.matName = matName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("sn", getSn())
            .append("userId", getUserId())
            .append("arriveState", getArriveState())
            .append("btsState", getBtsState())
            .append("isDeleted", getIsDeleted())
            .append("createdBy", getCreatedBy())
            .append("createdTime", getCreatedTime())
            .append("updatedBy", getUpdatedBy())
            .append("updatedDate", getUpdatedDate())
            .append("remark", getRemark())
            .toString();
    }
}
